package com.service;

import com.pojo.Account;
import com.pojo.RightClassOne;
import com.pojo.Role;

import java.util.List;

public interface RoleService {

    List<Role> showList(Account account);

    Role showRoleMsg(Long id);

//    List<Role> bandChileRole(Long id);

    List<RightClassOne> findAllRights();

    List<RightClassOne> findRightsBySuperId(List<RightClassOne> list,Integer pid);

    RightClassOne findRightsById(Integer id);

    /**
     * 删除
     * @param id
     * @return
     */
    boolean deleteRoleById(Integer id);

    List<Role> searchRoleByNameOrStatus(Role role);

    boolean addBusiness(Role role);

    List<Role> superBusinessList();
    /**
     * 修改角色信息
     * @param role
     * @return
     */
    boolean updateBusiness(Role role);

    List<RightClassOne> findAccountRights(Long id);

    /**
     * 查询所有操作权限
     */
    List<RightClassOne> findAllDoRights();

    List<RightClassOne> findAccountDoRights(Long roleId);

    boolean updateBusinessChildsStatus(Role role);

    Role findAddRole(String roleName);

    boolean addRoleRights(String rights,Long addRoleId);

    boolean deleteRoleRights(Long updateRoleId);
}
